package com.cloud.logger.zchain.zchainserver.entity.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Transient;

import java.util.List;

/**
 * User: zhengyt
 * Date: 2017/12/5
 * Time: 10:42
 */
@Data
public class ZchainOrgnationAndUserVo {

    @JsonProperty("id")
    @JSONField(name = "id")
    @ApiModelProperty(name = "id", notes = "id", example = "12")
    private String id;

    @JsonProperty("name")
    @JSONField(name = "name")
    @ApiModelProperty(name = "name", notes = "名称", example = "drore")
    private String name;

    @JsonProperty("type")
    @JSONField(name = "type")
    @ApiModelProperty(name = "type", notes = "类型(区分组织和用户，组织='org',用户='user')", example = "org")
    private String type;

    @Transient
    private List<ZchainOrgnationAndUserVo> children;

}
